﻿@model MvcGambro.Models.Sys_Menu
@{  
    ViewBag.Title = "创建";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>新建</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.MenuName, "菜单名称")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MenuName)
            @Html.ValidationMessageFor(model => model.MenuName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.MenuLevel, "菜单等级")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MenuLevel)
            @Html.ValidationMessageFor(model => model.MenuLevel)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.IsEnable, "是否启用")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsEnable)
            @Html.ValidationMessageFor(model => model.IsEnable)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.FK_CreateUser, "创建人")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FK_CreateUser)
            @Html.ValidationMessageFor(model => model.FK_CreateUser)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.CreateTime, "创建时间")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CreateTime)
            @Html.ValidationMessageFor(model => model.CreateTime)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.remark, "备注")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.remark)
            @Html.ValidationMessageFor(model => model.remark)
        </div>
        <p>
            <input type="submit" value="保存" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("返回列表", "Index")
</div>
